<?php
require_once '/home/qss/shupeng/dw/common/lib/ezcomponents/Base/src/ezc_bootstrap.php'; 
require_once '/home/qss/shupeng/dw/executor/workflow/variables/VariableHandler.php';
$workflow = new ezcWorkflow('MapReduceTest');

$simpleTest = new ezcWorkflowNodeAction(array(
    'class' => 'ActivityAction',
    'arguments' =>  array(
        'SimpleTest',
    )
));



$workflow->startNode->addoutNode($simpleTest);
$simpleTest->addOutNode($workflow->endNode);
$workflow->addVariableHandler('params', 'VariableHandler');

// Set up database connection.
$db = ezcDbFactory::create( 'mysql://dw:dwcloud360@client05v.safe.zzbc.qihoo.net/dw' );

// Set up workflow definition storage (database).
$definition = new ezcWorkflowDatabaseDefinitionStorage( $db );

// Save workflow definition to database.
$definition->save( $workflow );
